namespace PropertyExpression.ControllableQuery.Test
{
    public class Money
    {
        private readonly decimal value;

        public Money(decimal value)
        {
            this.value = value;
        }

        public decimal Value
        {
            get { return value; }
        }

        public static implicit operator decimal(Money money)
        {
            return money.Value;
        }

        public override string ToString()
        {
            return Value.ToString();
        }
    }
}